package com.example.lhh.user.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.lhh.user.entity.LhhPermission;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface LhhPermissionMapper extends BaseMapper<LhhPermission> {

    //通过用户名，获取父级菜单
    List<LhhPermission> getParentMenuByUserNo(String userNo);

    //获取子级菜单
    List<LhhPermission> getSubeMnuByParentCode(String parentCode);
}
